package edu.scut.luluteam.contextlib.Tools;

import android.content.Intent;

import edu.scut.luluteam.contextlib.constant.AppHolder;
import edu.scut.luluteam.contextlib.service.LocationService;

/**
 * @author Guan
 * @date Created on 2018/11/21
 */
public class JumpHelper {


    /**
     * 开启定位Service
     */
    public static final void gotoLocationService(String itemId, int rating, long duration, int wordCount) {
        Intent intent = new Intent(AppHolder.appContext, LocationService.class);
        intent.putExtra("itemId", itemId);
        intent.putExtra("rating", rating);
        intent.putExtra("duration", duration);
        intent.putExtra("wordCount", wordCount);
        AppHolder.appContext.startService(intent);
    }

}
